<template>
  <div id="app">
    <transition mode="out-in" name="app-main">
      <router-view key="app-router-view" />
    </transition>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      data: ''
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}
/* app-main */
.app-main-leave-active {
  transition: all 0.2s;
}
.app-main-enter-active {
  transition: all 0.3s;
}

.app-main-enter {
  opacity: 0;
  transform: translateX(0px);
}

.app-main-leave-to {
  opacity: 0;
  transform: translateX(0px);
}
</style>
